﻿<%@ Page Title="Home" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="Default.aspx.cs" Inherits="CoastalClimbing.Default" %>

<%@ OutputCache Duration="30" VaryByParam="none" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <meta name="robots" content="index,follow" />
    <meta name="author" content="Coastal Climbing" />
    <meta name="language" content="english" />
    <meta name="designer" content="www.coastalclimbing.com" />
    <meta name="revisit-after" content="15" />
    <meta name="distribution" content="Global" />
    <meta name="country" content="USA, United States, United States Of America, America" />
    <meta name="city" content="Charleston" />
    <meta name="organization" content="www.coastalclimbing.com" />
    <meta http-equiv="expires" content="never" />
    <meta http-equiv="cache-control" content="public" />
    <link href="Styles/Slides.css" rel="stylesheet" type="text/css" />
    <script src="//ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js" ></script>
    <script src="Scripts/jquery.easing.1.3.js" type="text/javascript"></script>
    <script src="Scripts/slides.min.jquery.js" type="text/javascript"></script>
    <script type="text/javascript">
        $(function () {
            $('#slides').slides({
                preload: true,
                preloadImage: 'Images/loading.gif',
                play: 2500,
                pause: 500,
                hoverPause: true
            });            
        });

        function openwin() {
            window.open("https://app.rockgympro.com/waiver/esign/coastalclimbing/deab88d5-f065-4510-9981-70ad7a7d0fa6", "_blank");
        }
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div id="homePageTop">
        <div id="pics">
            <div id="slides">
                <div class="slides_container">
                    <asp:Repeater ID="rptImages" runat="server">
                        <ItemTemplate>
                            <img src='<%# Eval("FILENAME", "http://www.coastalclimbing.com/Images/{0}") %>' width="421" height="363" alt='<%# Eval("INFO") %>' />
                        </ItemTemplate>
                    </asp:Repeater>
                </div>
            </div>
            <img src="Images/frame.png" width="425" height="398" alt="Example Frame" id="frame" />
        </div>
        <div id="homePageText">
            <h1>Welcome to Coastal Climbing</h1>
            <span class="eigthteenWhite">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Charleston's
            </span><span class="twentyTwoYellowBold">Premier Bouldering Facility</span>
            <br />
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            <span class="eigthteenWhite">located in downtown Charleston, SC</span>
            <br />
            <br />
            <br />
            <div id="latestBlurb">            
                <asp:Literal ID="litTitle" runat="server" />
                <div id="membershipInfo">
                    <asp:Literal ID="litMessage" runat="server" />                    
                    <br />
                    <br />
                    **All minors (under 18) must have a liability waiver correctly filled out by a parent or legal guardian before climbing and must bring a copy of legal guardians drivers license if filled out online!  
                    <input type="button" onclick="openwin();" value="Sign our paperless waiver" />   
                    <br />
                    <br />
                    Ever wondered, "What is Bouldering?"? Click <a href="http://www.youtube.com/watch?v=LQJfXPedk28" class="yellowLink" target="_blank">>here<</a> to find out!
                </div>            
            </div>
        </div>
    </div>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder2" runat="server">
    <div id="homePageBottom">
        <div id="homePageBottomLeft">
            <span class="twentyFourYellowCentered">Latest News</span>
            <br />
            <br />
            <asp:Literal runat="server" ID="litNewsFail" Visible="false" />
            <asp:DataList ID="dtlNews" runat="server" GridLines="None" ShowHeader="false">
                <ItemTemplate>
                    <a href="<%# Eval("Link") %>" target="_blank">
                        <%# DataBinder.Eval(Container.DataItem, "ShortTitle", "+ {0}...")%></a>
                </ItemTemplate>
                <SeparatorTemplate>
                    <br />
                </SeparatorTemplate>
            </asp:DataList>
        </div>
        <div id="homePageBottomCenter">
            <span class="twentyFourYellowCentered">Facebook News</span>
            <br />
            <br />
            <asp:DataList ID="dtlFacebook" runat="server" GridLines="None" ShowHeader="false">
                <ItemTemplate>
                    <a href="<%# Eval("Link") %>" target="_blank">
                        <%# DataBinder.Eval(Container.DataItem, "ShortTitle", "+ {0}...")%></a>
                </ItemTemplate>
                <SeparatorTemplate>
                    <br />
                </SeparatorTemplate>
            </asp:DataList>
        </div>
        <div id="homePageBottomRight">
            <span class="twentyFourYellowCentered">Newest Routes Up</span>
            <br />
            <br />
            <asp:DataList ID="dtlRoutes" runat="server" GridLines="None" ShowHeader="false" ShowFooter="true">
                <ItemTemplate><a href='<%# DataBinder.Eval(Container.DataItem, "ID", "Route.aspx?id={0}") %>'>
                        <%# DataBinder.Eval(Container.DataItem, "Name", "+ {0}...")%></a>
                </ItemTemplate>
                <SeparatorTemplate>
                    <br />
                </SeparatorTemplate>
                <FooterTemplate>
                <br />
                    <a href="Routes.aspx">>see all<</a>
                </FooterTemplate>
            </asp:DataList>
        </div>
    </div>
        <br />
        <br />
        <div id="homePageBottomImages">
            <span class="eigthteenYellow">#COASTALCLIMBING</span>
            <asp:DataList ID="dtlImages" runat="server" GridLines="None" ShowHeader="false" ShowFooter="false" RepeatColumns="6" RepeatDirection="Horizontal">
                <ItemTemplate>
                    <a target="_blank" href='<%# DataBinder.Eval(Container.DataItem, "InstagramUrl")%>'><img src='<%# DataBinder.Eval(Container.DataItem, "Url")%>' alt='<%# DataBinder.Eval(Container.DataItem, "Comment")%>' border="0"/></a>
                </ItemTemplate>
                <SeparatorTemplate>
                    <p style="width:20px" />
                </SeparatorTemplate>
            </asp:DataList>
            <asp:Literal ID="litImages" runat="server" Visible="false" />
        </div>
</asp:Content>
